﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IGGCore;

namespace IGG
{
    public class ModeTeamsFormatter : IModeFormatter
    {
        #region IModeFormatter Members

        /// <summary>
        /// Format the history tidbit
        /// </summary>
        public void FormatMode(Scoreboard board)
        {
            Output.WriteLine();
            Output.WriteLine(" LAA) Los Angeles Angels");
            Output.WriteLine(" ARI) Arizona Diamondbacks");
            Output.WriteLine(" ATL) Atlanta Braves");
            Output.WriteLine(" BAL) Baltimore Orioles");
            Output.WriteLine(" BOS) Boston Red Sox");
            Output.WriteLine(" CHC) Chicago Cubs");
            Output.WriteLine(" CHW) Chicago White Sox");
            Output.WriteLine(" CIN) Cincinnati Reds");
            Output.WriteLine(" CLE) Cleveland Indians");
            Output.WriteLine(" COL) Colorado Rockies");
            Output.WriteLine(" DET) Detroit Tigers");
            Output.WriteLine(" HOU) Houston Astros");
            Output.WriteLine(" KC)  Kansas City Royals");
            Output.WriteLine(" LAD) Los Angeles Dodgers");
            Output.WriteLine(" MIL) Milwaukee Brewers");
            Output.WriteLine(" MIA) Miami Marlins");
            Output.WriteLine(" MIN) Minnesota Twins");
            Output.WriteLine(" NYM) New York Mets");
            Output.WriteLine(" NYY) New York Yankees");
            Output.WriteLine(" OAK) Oakland Athletics");
            Output.WriteLine(" PHI) Philadelphia Phillies");
            Output.WriteLine(" PIT) Pittsburgh Pirates");
            Output.WriteLine(" SD)  San Diego Padres");
            Output.WriteLine(" SF)  San Francisco Giants");
            Output.WriteLine(" SEA) Seattle Mariners");
            Output.WriteLine(" STL) St. Louis Cardinals");
            Output.WriteLine(" TB)  Tampa Bay Rays");
            Output.WriteLine(" TEX) Texas Rangers");
            Output.WriteLine(" TOR) Toronto Blue Jays");
            Output.WriteLine(" WAS) Washington Nationals");
            Output.WriteLine("");
            Output.Write(" TEAM: ");

            string userchoice = Console.ReadLine().ToUpper();
            Output.WriteLine();
            Output.Write(" Loading. Please wait.");
            Team team = new Team();
            team.Code = userchoice;
            board.ActiveTeam = team;
        }

        #endregion
    }
}
